
//
//  ShopJumpTableViewCell.m
//  MyProject
//
//  Created by dllo on 15/11/6.
//  Copyright (c) 2015年 蓝鸥0825. All rights reserved.
//

#import "ShopJumpTableViewCell.h"

#define WIDTH self.frame.size.width
#define HEIGHT self.frame.size.height

@implementation ShopJumpTableViewCell

- (void)awakeFromNib {

}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
   
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self create];
    }
    return self;
}



- (void)create{
    
    self.image = [[UIImageView alloc] init];
    [self addSubview:self.image];
    [self.image release];
    
    self.labelTitle = [[UILabel alloc] init];
    [self addSubview:self.labelTitle];
    [self.labelTitle release];
    
    self.labelProduce = [[UILabel alloc] init];
    [self addSubview:self.labelProduce];
    [self.labelProduce release];
    
    self.labelPrice = [[UILabel alloc] init];
    [self addSubview:self.labelPrice];
    [self.labelPrice release];
    
    self.labelPriceSec = [[UILabel alloc] init];
    [self addSubview:self.labelPriceSec];
    [self.labelPriceSec release];
    
    self.labelBaoyou = [[UILabel alloc] init];
    [self addSubview:self.labelBaoyou];
    [self.labelBaoyou release];
}



- (void)layoutSubviews{
    
    self.image.frame = CGRectMake(0, 0, WIDTH, HEIGHT / 100 * 40);
    self.labelTitle.frame = CGRectMake(0, HEIGHT / 100 * 40, WIDTH, HEIGHT / 100 * 10);
    self.labelProduce.frame = CGRectMake(0, HEIGHT / 100 * 50, WIDTH, HEIGHT / 100 * 20);
    self.labelPrice.frame = CGRectMake(0, HEIGHT / 100 * 70, WIDTH, HEIGHT / 100 * 10);
    self.labelPriceSec.frame = CGRectMake(0, HEIGHT / 100 * 80, WIDTH, HEIGHT / 100 * 10);
    self.labelBaoyou.frame = CGRectMake(0, HEIGHT / 100 * 90, WIDTH, HEIGHT / 100 * 10);
    
    self.image.layer.borderWidth = 1;
    self.labelTitle.layer.borderWidth = 1;
    self.labelProduce.layer.borderWidth = 1;
    self.labelPrice.layer.borderWidth = 1;
    self.labelPriceSec.layer.borderWidth = 1;
    self.labelBaoyou.layer.borderWidth = 1;
}



- (void)setModelShopJump:(ShopJumpModel *)modelShopJump{
    
    
    
    
    
    
}



@end










